<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Greed Island</title>
<link href="http://localhost/greed_island/layout.css" rel="stylesheet" type="text/css" /><!--[if lte IE 7]>
<style>
.content { margin-right: -1px; } /* this 1px negative margin can be placed on any of the columns in this layout with the same corrective effect. */
ul.nav a { zoom: 1; }  /* the zoom property gives IE the hasLayout trigger it needs to correct extra whiltespace between the links */
</style>
<![endif]-->

</head>

<body>
<div class="container">
  <div class="sidebar1">
    <?php 
include 'dbc.php';
session_start();
if (isset($_SESSION['username']))
{
?>
<div style="padding:10px;color:white;font-weight:bold;">
<?php
echo "Welcome ".$_SESSION['username'];
?>
<br /><a style="color:yellow;font-weight:bold;" href="http://localhost/greed_island/logout.php">Log Out</a>
<br /><a style="color:yellow;font-weight:bold;" href="http://localhost/greed_island/controllers/maincontroller.php?url=map">Map</a>
</div>

<?php } ?>
<div style="width:160px;height:600px;margin:0 auto;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9675358815545308";
/* Greed island */
google_ad_slot = "5431877117";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
    <!-- end .sidebar1 --></div>  
    
  <div class="content">
<h1 style="text-align:center;color:green;">Greed Island</h1>   
<?php
$url=$_GET['url'];
include $_SERVER['DOCUMENT_ROOT']."/greed_island/views/".$url.".php";
?>
    <!-- end .content --></div>
<!-- end .container --></div>
</body>
</html>